<template>
  
  <el-icon :size="size" :color="color">
    <component :is="iconName" />
  </el-icon>
</template>

<script setup lang="ts">
import * as ElIcons from '@element-plus/icons-vue'

defineProps<{
  iconName: keyof typeof ElIcons,
  size?: number | string,
  color?: string
}>()
</script>